<template xmlns:v-on="http://www.w3.org/1999/xhtml">
  <div class="content">
      <!-- 头部 -->
    <div class="main-title">
      <ul>
        <li>
          <div @click="navBackClick(1)" class="main-title-left main-title-noSelect">
            首页
          </div>
          <div class="main-title-right">
            /
          </div>
        </li>
        <li>
          <div class="main-title-left main-title-select">
            面试记录
          </div>
          <div class="main-title-right">
            <!-- / -->
          </div>
        </li>
      </ul>
    </div>
    <div class="content-center">
      <!--筛选-->
      <div class="main-search">
        <div class="title-left">
          <div>
              <select @change="selectTypesClick" v-model="posttype">
                <option v-for="(type,index) in posttypes" v-bind:value="index" :key="index">{{type.desc}}</option>
              </select>
          </div>
          <!-- <div>
              <select @change="selectTypesClick" v-model="type">
                <option v-for="(type,index) in types" v-bind:value="index" :key="index">{{type.name}}</option>
              </select>
          </div> -->
          <div class="searchInput">
            <div class="searchInput-input">
              <div>
                <input type="text" placeholder="请输入" v-model="searchNameVal">
              </div>
              <div>
                <!-- 搜索 -->
              </div>              
            </div>
          </div>
          <div class="searchBut">
            <div class="searchBut-search" @click="searchClick">
              查&nbsp;&nbsp; 询
            </div>
            <div class="searchBut-cancel" @click="emptyClick">
              清&nbsp;&nbsp; 空
            </div>
          </div>
        </div>
        <div class="title-right">
          <!-- <div class="title-right-but" @click="addClick">
            <div class="title-r-but-left">
              <img src="static/img/添加.png" alt="添加">
            </div>
            <div class="title-r-but-right">
              &nbsp;&nbsp;新增简历
            </div>
          </div> -->
        </div>
      </div>
      <!--列表-->
      <div class="main-list">
        <ul>
          <li class="fistLi">
            <div class="liOne">状态</div>
            <div class="liOne">姓名</div>
            <div class="liOne">岗位</div>
            <div class="liOne">工作年限</div>
            <div class="liOne">面试人</div>
            <div class="liOne">沟通人</div>
            <div class="liOne">面试时间</div>
            <div class="liOne">面试进度</div>
            <div class="liOne">操作</div>
          </li>
          <li v-show="lists.length > 0" class="dataLi" v-for="(item,index) in lists" :key="index">
            <div>{{item.status | statusFun}}</div>
            <div>{{item.name | strFun}}</div>
            <div>{{item.position | positionFun}}</div>
            <div>{{item.workYear | strFun}}</div>
            <div>{{item.interviewer | strFun}}</div>
            <div>{{item.hr | strFun}}</div>
            <div>{{item.interviewTime | timeFun}}</div>
            <div>{{item.step | stepFun}}</div>
            <div class="data-operation">
              <!-- <div @click="offerClick(index)">发送offer</div> -->
              <div @click="lookClick(index)">预览</div>
              <div @click="opAwaitClick(index)">详情</div>
              <div @click="deleteClick(index)">删除</div>
              <!-- <div class="data-operation-more"  @mouseenter="moreOver(index)" @mouseleave="moreOut(index)">
                <div class="data-operation-more-top">
                  <div>
                   更多
                  </div>
                  <div>
                    <img src="/static/img/下.png" alt="">
                  </div>
                </div>
                <div class="data-operation-more-bottom" v-show="operationMoreShow == index">
                  <div @click="opAwaitClick(index)">详情</div>
                  <div @click="updatemEessageClick(index)">更改信息</div>
                </div>
              </div> -->
            </div>
          </li>
          <li v-show="lists.length > 0" class="pageLi">
            <div></div>
            <div>
              <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[10, 20, 30, 40]"
                  :page-size="pageSizeNum" layout="total,sizes,prev, pager, next,jumper" :total="totalNum">
               </el-pagination>
            </div>
          </li>
          <li v-show="lists.length == 0" id="nullLi">
            <img src="/static/img/空状态.png" alt="">
          </li>
        </ul>
      </div>
      <div :class="{showdel:isShowdel}" class="delPopup">
        <transition name="slide-fade">
            <v-mDel @ok="confirmClick" @canle="cancelClick" :name="titlename"></v-mDel>
        </transition>
      </div>
      <div v-show="isShowLook" class="lookShow">
        <div class="main-lookShow">
          <div class="main-lookShow-top">
            <div>个人简历</div>
            <div @click="lookHideClick">X</div>
          </div>
          <div class="main-lookShow-bottom" v-show="updateOrLokkShow">
            <iframe :src='pdfurls' v-if="pdfurlsShow" width="100%" height="500" scrolling="no">
              您的浏览器不支持框架
            </iframe>
            <div class="main-lookShow-bottom-pdfImg" v-else>
              <img :src="pdfurls" alt="">
            </div>
          </div>
          <div class="main-lookShow-bottomNoLOk" v-show="!updateOrLokkShow">
              此简历暂不不支持预览，请点击下载查看
          </div>
          <div class="main-lookShow-button">
            <!--  @click="upLookClick" -->
            <a class="button-lookShow-save" :href="pdfurlsHref">下载</a>
          </div>
        </div>
      </div>
      <div v-show="isShowupdatemEessage" class="updatemEessageShow">
        <div class="main-updatemEessageShow">
          <div class="main-updatemEessageShow-top">
            <div>更改面试信息</div>
          </div>
          <div class="main-updatemEessageShow-bottom">
            <div class="main-updatemEessage-list">
              <div>
                面试官
              </div>
              <div>
                <input type="text" v-model="interviewerVal">
              </div>
            </div>
            <div class="main-updatemEessage-list">
              <div>
                面试时间
              </div>
              <div>
               <el-date-picker format="yyyy-MM-dd HH:mm"  v-model="issueDate" type="datetime" placeholder="选择时间">
               </el-date-picker>    
              </div>
            </div>
            <div class="main-updatemEessage-button">
              <div class="button-save" @click="changeInterviewInfoClick">确定</div>
              <div @click="lookHideClick" class="button-cancel">取消</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import { mapActions } from "vuex";
import mDel from "../module/mDel";
export default {
  components: {
    "v-mDel": mDel
  },
  data() {
    return {
      updateOrLokkShow: false,
      pdfurlsShow: false,
      pdfurlsHref: "",
      pdfurls: "",
      operationMoreShow: 9999999999999999,
      searchNameVal: "",
      isShowupdatemEessage: false,
      isShowLook: false,
      lists: [],
      posttype: "0",
      posttypes: [
        {
          createDate: 0,
          creator: 0,
          deleteFlag: 1,
          desc: "全部岗位",
          id: 6,
          lastModDate: 0,
          lastModifier: 0,
          name: "全部岗位",
          type: "HUMAN_RESOURCE_POSITION",
          value: "4"
        }
      ],
      isShowdel: true,
      intercept: false,
      toPath: "",
      titlename: "？",
      isShowdelIndex: "0",
      pageSizeNum: 10,
      currentPage: 1,
      totalNum: 0,
      delIndex: "",
      interviewerVal: "",
      issueDate: "",
      addObj: {}
    };
  },
  // 过滤
  filters: {
    timeFun: function(val) {
      var now = new Date(val);
      var year = now.getYear() - 100;
      var month = now.getMonth() + 1;
      month = month > 9 ? month : "0" + month;
      var date = now.getDate();
      date = date > 9 ? date : "0" + date;
      var hour = now.getHours();
      hour = hour > 9 ? hour : "0" + hour;
      var minute = now.getMinutes();
      minute = minute > 9 ? minute : "0" + minute;
      return "20" + year + "-" + month + "-" + date + " " + hour + ":" + minute;
    },
    strFun: function(val) {
      if (val) {
        return val;
      } else {
        return "无";
      }
    },
    statusFun: function(val) {
      if (val) {
        if (val == 1) {
          return "面试中";
        } else if (val == 2) {
          return "拒绝";
        } else if (val == 4) {
          return "通过";
        } else if (val == 16) {
          return "拒绝offer";
        } else if (val == 512) {
          return "面试取消";
        } else if (val == 16) {
          return "面试中";
        } else if (val == 32) {
          return "待入职";
        } else if (val == 64) {
          return "已入职";
        } else if (val == 128) {
          return "已沟通";
        }
      } else {
        return "无";
      }
    },
    sourceFun: function(val) {
      if (val) {
        var self = this;
        var descStr = "";
        var descArr = JSON.parse(sessionStorage.getItem("sourcestr"));
        descArr.forEach(function(ele, ind) {
          if (ele.value == val) {
            descStr = ele.desc;
          }
        });
        return descStr;
      } else {
        return "无";
      }
    },
    yaerFun: function(val) {
      if (val) {
        var self = this;
        var descStr = "";
        var descArr = [
          { name: "无学历", inde: 1 },
          { name: "初中", inde: 2 },
          { name: "职高", inde: 4 },
          { name: "中专", inde: 8 },
          { name: "技校", inde: 16 },
          { name: "高中", inde: 32 },
          { name: "大专", inde: 64 },
          { name: "本科", inde: 128 },
          { name: "硕士", inde: 256 },
          { name: "博士", inde: 512 },
          { name: "三本", inde: 1024 },
          { name: "二本", inde: 2048 },
          { name: "一本", inde: 4096 },
          { name: "211", inde: 8192 },
          { name: "985", inde: 16384 }
        ];
        descArr.forEach(function(ele, ind) {
          if (ele.inde == val) {
            descStr = ele.name;
          }
        });
        return descStr;
      } else {
        return "无";
      }
    },
    stepFun: function(val) {
      if (val) {
        if (val == 1) {
          return "第一轮";
        } else if (val == 2) {
          return "第二轮";
        } else if (val == 3) {
          return "第三轮";
        } else if (val == 4) {
          return "第四轮";
        }
      } else {
        return "无";
      }
    },
    positionFun: function(val) {
      if (val) {
        var self = this;
        var descStr = "";
        var descArr = JSON.parse(sessionStorage.getItem("poststr"));
        descArr.forEach(function(ele, ind) {
          if (ele.value == val) {
            descStr = ele.desc;
          }
        });
        return descStr;
      } else {
        return "无";
      }
    }
  },
  // 模块新建时
  created: function() {
    var self = this;
    var posts = JSON.parse(sessionStorage.getItem("poststr"));
    var channelts = JSON.parse(sessionStorage.getItem("sourcestr"));
    self.postypes = JSON.parse(sessionStorage.getItem("poststr"));
    posts.forEach(element => {
      self.posttypes.push(element);
    });
    self.listFun();
  },
  // 计算属性
  mounted() {},
  // 事件处理
  methods: {
    // 反馈
    feedbackClick(index) {
      var self = this;
      this.$router.push({
        path: "/home/interview/opFeedback",
        query: { id: self.lists[index].id }
      });
      this.delIndex = index;
    },
    // 更改信息
    updatemEessageClick(index) {
      this.isShowupdatemEessage = true;
      this.delIndex = index;
      this.interviewerVal = "";
      this.issueDate = "";
    },
    // 删除
    deleteClick(index) {
      this.isShowdel = false;
      this.titlename = "是否要删除简历？";
      this.delIndex = index;
      this.isShowdelIndex = 5;
    },
    // 详情
    opAwaitClick(index) {
      var self = this;
      this.$router.push({
        path: "/home/interview/opResumeawaitRec",
        query: {
          id: self.lists[index].id,
          humanResourceId: self.lists[index].humanResourceId
        }
      });
      sessionStorage.setItem(
        "allListObj",
        JSON.stringify(self.lists[index].humanResource)
      );
    },
    // 预览
    lookHideClick() {
      this.isShowupdatemEessage = false;
      this.isShowLook = false;
      this.isShowfeedback = false;
      this.pdfurlsShow = false;
    },
    upLookClick() {
      var self = this;
      window.open(self.lists[self.delIndex].humanResource.file);
    },
    lookClick(index) {
      var self = this;
      this.delIndex = index;
      if (self.lists[self.delIndex].humanResource.file) {
        if (
          self.lists[self.delIndex].humanResource.file.indexOf(".PNG") > -1 ||
          self.lists[self.delIndex].humanResource.file.indexOf(".png") > -1 ||
          self.lists[self.delIndex].humanResource.file.indexOf(".jpg") > -1
        ) {
          self.pdfurls = self.lists[self.delIndex].humanResource.file;
          self.pdfurlsShow = false;
          self.isShowLook = true;
          self.updateOrLokkShow = true;
          self.pdfurlsHref = self.lists[self.delIndex].humanResource.file;
        } else {
          self.pdfurlsHref = self.lists[self.delIndex].humanResource.file;
          var fileStr = self.lists[self.delIndex].humanResource.file;
          fileStr = fileStr.split("file/")[1];
          var fileUpdate = self.lists[self.delIndex].humanResource.file;
          fileUpdate = fileUpdate.split("file/")[1].split(".")[1];
          self.isShowLook = true;
          if (fileUpdate == "doc") {
            self.updateOrLokkShow = false;
          } else {
            self.updateOrLokkShow = true;
            self
              .getuploaddocx2PdfPreviewer({
                name: fileStr
              })
              .then(data => {
                if (data.code == 200) {
                  self.pdfurls =
                    "/static/PDFShow/generic/web/viewer.html?file=" +
                    data.data.src;
                  this.pdfurlsShow = true;
                } else {
                  self.$message({
                    type: "info",
                    message: data.message
                  });
                }
              })
              .catch(msg => {
                this.$router.push({
                  path: "/login"
                });
                self.$message({
                  type: "info",
                  message: "服务器异常!"
                });
              });
          }
        }
      } else {
        self.$message({
          type: "info",
          message: "暂无简历!"
        });
      }
    },
    vFun() {
      var self = this;
      var phoneReg = new RegExp(/^\d{11}$/);
      var numReg = new RegExp(/^\d{1,7}$/);
      var num1Reg = new RegExp(/^\d{1,7}$/);
      var emailReg = new RegExp(
        /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/
      );
      var strReg = new RegExp(/^[\u4e00-\u9fa5]{2,10}$/);
      var nameReg = new RegExp(/^[a-zA-Z\u4e00-\u9fa5]{1,10}$/);
      var vFunFalse = false;
      if (self.interviewerVal) {
        if (nameReg.test(self.interviewerVal) == true) {
          self.addObj["interviewer"] = self.interviewerVal;
          if (self.issueDate) {
            vFunFalse = true;
            self.addObj["time"] = new Date(self.issueDate).getTime();
          } else {
            self.$message({
              type: "info",
              message: "面试时间项必填"
            });
            vFunFalse = false;
          }
        } else {
          self.$message({
            type: "info",
            message: "面试官项必填且为汉字和字母"
          });
          vFunFalse = false;
        }
      } else {
        self.$message({
          type: "info",
          message: "面试官项必填且为汉字和字母"
        });
        vFunFalse = false;
      }
      return vFunFalse;
    },
    // 变更信息
    changeInterviewInfoClick() {
      var self = this;
      self.addObj["step"] = self.lists[self.delIndex].step;
      self.addObj["id"] = self.lists[self.delIndex].id;
      var vFunShwo = self.vFun();
      if (vFunShwo == true) {
        self.isShowupdatemEessage = false;
        self
          .getinterviewchangeInterviewInfo(self.addObj)
          .then(data => {
            if (data.code == 200) {
              self.$message({
                type: "success",
                message: "信息更改成功"
              });
              self.listFun();
            } else {
              self.$message({
                type: "info",
                message: data.message
              });
            }
          })
          .catch(msg => {
            self.$message({
              type: "info",
              message: "服务器异常!"
            });
          });
      }
    },
    // 发送offer
    offerClick(index) {
      this.isShowdel = false;
      this.titlename = "是否发送offer？";
      this.isShowdelIndex = 1;
      this.delIndex = index;
    },
    confirmClick(index) {
      var self = this;
      this.isShowdel = true;
      if (self.isShowdelIndex == 5) {
        this.isShowdel = true;
        self
          .getinterviewDelete({
            id: self.lists[self.delIndex].id
          })
          .then(data => {
            if (data.code == 200) {
              self.$message({
                type: "success",
                message: "删除成功"
              });
              self.listFun();
            } else {
              self.$message({
                type: "info",
                message: data.message
              });
            }
          })
          .catch(msg => {
            this.$router.push({
              path: "/login"
            });
          });
      } else if (self.isShowdelIndex == 1) {
        self.$router.push({
          path: "/home/interview/opOffer",
          query: { id: self.lists[self.delIndex].id }
        });
        sessionStorage.setItem(
          "allListObj",
          JSON.stringify(self.lists[self.delIndex].humanResource)
        );
      } else if (self.isShowdelIndex == 4) {
        self.$router.push({
          path: "/home/interview/opblackType",
          query: { id: self.lists[self.delIndex].id }
        });
      }
    },
    cancelClick() {
      this.isShowdel = true;
      this.isShowdelIndex = 0;
    }, // 更多
    moreOver(index) {
      this.operationMoreShow = index;
    },
    moreOut(index) {
      this.operationMoreShow = 999999999999999999;
    },
    // 点击分页
    handleCurrentChange(val) {
      var self = this;
      self.currentPage = val;
      self.listFun();
    },
    // 选择每页个数
    handleSizeChange(val) {
      var self = this;
      self.currentPage = 1;
      self.pageSizeNum = val;
      self.listFun();
    },
    // 获取列表
    listFun() {
      var self = this;
      // {"items":[{"op":"in","column":"status","value":[4]}]}
      var itemArr = [];
      itemArr.push({
        op: "in",
        column: "status",
        value: ["2", "4", "8", "16", "512"]
      });
      var obj = {
        pageIndex: self.currentPage,
        pageSize: self.pageSizeNum
      };
      if (itemArr.length > 0) {
        obj["items"] = itemArr;
      }
      self
        .getinterviewpageSearch(obj)
        .then(data => {
          if (data.code == 200) {
            self.lists = data.data.records;
            self.totalNum = data.data.total;
          } else {
            self.$message({
              type: "info",
              message: data.message
            });
          }
        })
        .catch(msg => {
          self.$message({
            type: "info",
            message: "服务器异常!"
          });
          this.$router.push({
            path: "/login"
          });
        });
    },
    // 添加
    addClick() {
      this.$router.push({
        path: "/home/interview/addAwait"
      });
    },
    selectTypesClick() {},
    emptyClick() {
      var self = this;
      self.posttype = 0;
      self.searchNameVal = "";
      self.listFun();
    },
    // 搜索
    searchClick() {
      var self = this;
      var state, position, source;
      // {"items":[{"op":"in","column":"status","value":[4]}]}
      var itemArr = [];
      itemArr.push({
        op: "in",
        column: "status",
        value: ["2", "4", "8", "16", "512"]
      });
      if (self.posttype == 0) {
      } else {
        position = self.posttypes[self.posttype].value;
        itemArr.push({ op: "eq", column: "position", value: [position] });
      }
      if (self.searchNameVal) {
        itemArr.push({
          op: "like",
          column: "name",
          value: [self.searchNameVal]
        });
      }
      if (self.searchNameVal) {
        itemArr.push({
          op: "like",
          column: "name",
          value: [self.searchNameVal]
        });
      }
      console.log(itemArr);
      var obj = {
        pageIndex: self.currentPage,
        pageSize: self.pageSizeNum
      };
      if (itemArr.length > 0) {
        obj["items"] = itemArr;
      }
      self
        .getinterviewpageSearch(obj)
        .then(data => {
          if (data.code == 200) {
            self.lists = data.data.records;
            self.totalNum = data.data.total;
          } else {
            self.$message({
              type: "info",
              message: data.message
            });
          }
        })
        .catch(msg => {
          self.$message({
            type: "info",
            message: "服务器异常!"
          });
        });
    },
    navBackClick(index) {
      if (index == 2) {
        this.$router.push({
          path: "/home/interview/await"
        });
      } else if (index == 1) {
        this.$router.push({
          path: "/home/interview/await"
        });
      }
    },
    ...mapActions([
      "getinterviewpage",
      "getinterviewchangeInterviewInfo",
      "getinterviewpageSearch",
      "getuploaddocx2PdfPreviewer",
      "getinterviewDelete"
    ])
  },
  // 监视
  watch: {}
};
</script>
<style scoped>
#nullLi {
  height: 400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#nullLi img {
  width: 300px;
  /* height: 300px; */
}
.fistLi,
.dataLi,
.pageLi {
  width: 100%;
  min-height: 54px;
}
.pageLi {
  margin-top: 75px;
  height: 75px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(232, 232, 232, 1);
}
.pageLi > div:nth-child(1) {
  width: 100px;
}
.pageLi > div:nth-child(2) {
  min-width: 300px;
  margin-right: 5px;
}

.fistLi {
  height: 54px;
  background-color: #fffafafa !important;
  border-bottom: 1px solid #ffe8e8e8;
  display: flex;
}
.fistLi > div {
  font-size: 14px !important;
  font-family: PingFangSC-Medium;
  color: rgba(0, 0, 0, 0.85) !important;
  font-weight: 600;
}
.dataLi {
  border-bottom: 1px solid rgba(232, 232, 232, 1);
  display: flex;
  height: 54px;
  background-color: #fff;
}
.dataLi:hover {
  background: rgba(255, 247, 230, 1);
}
.dataLi > div {
  font-size: 14px;
  font-family: PingFangSC-Regular;
  color: rgba(0, 0, 0, 0.9);
}

.fistLi > div,
.dataLi > div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fistLi > div:nth-child(1),
.dataLi > div:nth-child(1) {
  width: 10%;
  min-width: 45px;
}
.fistLi > div:nth-child(2),
.dataLi > div:nth-child(2) {
  width: 10%;
  min-width: 45px;
}
.fistLi > div:nth-child(3),
.dataLi > div:nth-child(3) {
  width: 9%;
  min-width: 70px;
}
.fistLi > div:nth-child(4),
.dataLi > div:nth-child(4) {
  width: 9%;
  min-width: 70px;
}
.fistLi > div:nth-child(5),
.dataLi > div:nth-child(5) {
  width: 9%;
  min-width: 70px;
}
.fistLi > div:nth-child(6),
.dataLi > div:nth-child(6) {
  width: 9%;
  min-width: 70px;
}
.fistLi > div:nth-child(7),
.dataLi > div:nth-child(7) {
  width: 11%;
  min-width: 115px;
}
.fistLi > div:nth-child(8),
.dataLi > div:nth-child(8) {
  width: 8%;
  min-width: 60px;
}
.fistLi > div:nth-child(9) {
  width: 25%;
}

.dataLi .data-operation {
  display: flex;
  width: 25%;
  align-items: center;
  min-width: 200px;
}
.data-operation .data-operation-more {
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
}
.data-operation-more-bottom {
  position: absolute;
  background-color: #fff;
  min-width: 47px;
  min-height: 30px;
  top: 25px;
  left: -20px;
  z-index: 1000;
  box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.5);
}
.data-operation-more-bottom > div:nth-last-of-type(1) {
  margin-bottom: 9px;
}
.data-operation-more-bottom > div {
  width: 57px;
  height: 22px;
  line-height: 22px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  margin-top: 7px;
  padding-right: 10px;
  padding-left: 10px;
}
.data-operation .data-operation-more .data-operation-more-top {
  padding-left: 5px;
  padding-right: 5px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: rgba(250, 140, 22, 1);
  /* border: 1px solid red; */
  height: 40px;
  line-height: 40px;
}
.data-operation .data-operation-more .data-operation-more-top > div {
  margin-right: 2px;
  margin-left: 2px;
}
.data-operation > div img {
  width: 10px;
  height: 6px;
}
.data-operation > div {
  height: 14px;
  line-height: 14px;
  padding-left: 5px;
  padding-right: 5px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  color: rgba(250, 140, 22, 1);
  border-left: 1px solid rgba(216, 216, 216, 1);
}
.data-operation > div:nth-child(1) {
  border: 0;
}

.searchInput-input {
  height: 28px;
  width: 200px;
  display: flex;
  border: 1px solid #9c9c9c;
  border-radius: 3px;
}
.searchInput {
  display: flex;
  width: 205px;
  align-items: center;
}
.searchInput-input > div:nth-child(2) {
  font-size: 13px;
  color: #000;
  height: 28px;
  line-height: 28px;
  width: 30px;
  text-align: center;
}
.searchInput-input > div:nth-child(1) {
  display: flex;
  align-items: center;
}
.searchInput-input > div:nth-child(1) input {
  width: 160px;
  height: 27px;
  border: 0;
  line-height: 27px;
  font-size: 13px;
  padding-left: 7px;
}

.searchBut-search {
  width: 74px;
  height: 32px;
  background: rgba(250, 140, 22, 1);
  border-radius: 4px;
  line-height: 32px;
  font-size: 14px;
  font-family: PingFangSC-Regular;
  color: rgba(255, 255, 255, 1);
  text-align: center;
  cursor: pointer;
}
.searchBut-cancel {
  width: 74px;
  height: 32px;
  background: rgba(255, 255, 255, 1);
  border-radius: 4px;
  line-height: 32px;
  font-size: 14px;
  font-family: PingFangSC-Regular;
  color: rgba(0, 0, 0, 0.65);
  text-align: center;
  margin-left: 8px;
  border: 1px solid #ffd9d9d9;
  cursor: pointer;
}
.searchBut {
  display: flex;
}
.title-left > div {
  margin-left: 15px;
}
.title-left select {
  width: 130px;
  height: 30px;
  border-radius: 4px;
  font-size: #666;
  border: 1px solid #9c9c9c;
}
select::-ms-expand,
select::-webkit-expand {
  display: none;
}
.title-left {
  height: 50px;
  min-width: 300px;
  display: flex;
  align-items: center;
}
.title-right {
  height: 50px;
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.title-r-but-right {
  min-width: 15px;
  font-size: 13px;
  color: #fff;
}

.title-r-but-left {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.title-r-but-left img {
  width: 100%;
  height: 100%;
}
.title-right-but {
  width: 104px;
  height: 32px;
  background: rgba(250, 140, 22, 1);
  border-radius: 4px;
  line-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-family: PingFangSC-Regular;
  color: rgba(255, 255, 255, 1);
}
.main-title-noSelect {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}
.main-title-select {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.85);
  font-weight: 600;
}

.main-title-right {
  width: 23px;
  text-align: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
}

.main-title ul {
  width: 100%;
  display: flex;
  height: 54px;
  margin-left: 34px;
}
.main-title ul li {
  display: flex;
}
.main-title {
  width: 100%;
  height: 54px;
  background-color: #fff;
  line-height: 54px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: inset 0px 3px 3px 0px #ccc;
}

.main-search {
  width: 100%;
  height: 80px;
  background-color: #fff;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.main-list ul {
  width: 100%;
  overflow: hidden;
  min-height: 500px;
}
.main-list {
  width: 100%;
  margin-top: 15px;
  min-height: 50px;
  /* border: 2px solid #00beff; */
  background-color: #ffff;
}

.content {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(240, 242, 245, 1);
  min-height: 350px;
  /* border: 1px solid red; */
}

.content-center {
  overflow: hidden;
  width: calc(100% - 48px);
  margin-left: 24px;
  background-color: #fff;
  margin-top: 24px;
  border-radius: 3px;
  min-height: calc(100% - 78px - 24px);
  margin-bottom: 24px;
}

/*取消弹出框*/

.delPopup {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showdel {
  display: none;
}

.button-lookShow-save {
  width: 74px;
  height: 32px;
  border-radius: 4px;
  background-color: rgba(250, 140, 22, 1);
  text-align: center;
  line-height: 32px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 1);
}

.main-lookShow-button {
  height: 55px;
  display: flex;
  width: 100%;
  margin-top: 25px;
  align-items: center;
  justify-content: center;
}
.main-lookShow-bottomNoLOk {
  width: 90%;
  margin: 0 auto;
  margin-top: 36px;
  height: 500px;
  border: 1px solid #ccc;
  line-height: 500px;
  font-size: 20px;
  color: #ccc;
  text-align: center;
}
.main-lookShow-bottom .main-lookShow-bottom-pdfImg {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
}
.main-lookShow-bottom img {
  width: 100%;
}
.main-lookShow-bottom {
  width: 90%;
  margin: 0 auto;
  margin-top: 36px;
  height: 500px;
  border: 1px solid #ccc;
}

.main-lookShow-top > div:nth-child(1) {
  font-size: 16px;
  font-weight: 600;
  color: #5c5c5c;
  margin-left: 30px;
  font-size: 20px;
  color: rgba(0, 0, 0, 1);
}

.main-lookShow-top > div:nth-child(2) {
  margin-right: 20px;
  width: 35px;
  height: 35px;
  text-align: center;
  line-height: 35px;
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  color: #ccc;
}

.main-lookShow-top {
  display: flex;
  justify-content: space-between;
  height: 22px;
  margin-top: 30px;
  align-items: center;
}

.main-lookShow {
  width: 900px;
  height: 700px;
  background-color: #fff;
  border-radius: 5px;
}

.lookShow {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-updatemEessage-list select {
  width: 100px;
  height: 32px;
  line-height: 32px;
  border-radius: 4px;
  font-size: #666;
  border: 1px solid #9c9c9c;
}
.main-updatemEessage-list input {
  width: 250px;
  border-radius: 4px;
  height: 32px;
  line-height: 32px;
  border: 1px solid #ccc;
}
.main-updatemEessage-list > div:nth-child(1) {
  width: 100px;
  text-align: right;
  width: 150px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.85);
  text-align: right;
}
.main-updatemEessage-list > div:nth-child(2) {
  width: 392px;
  margin-left: 15px;
}
.main-updatemEessage-list {
  min-height: 50px;
  display: flex;
  margin-bottom: 15px;
  align-items: center;
}
.main-updatemEessage-list textarea {
  width: 492px;
  resize: none;
  height: 135px;
  border: 1px solid #ffd7d7d7;
  border-radius: 4px;
}

.main-updatemEessage-list input {
  width: 286px;
  border-radius: 4px;
  height: 32px;
  line-height: 32px;
  border: 1px solid #ccc;
}
.main-updatemEessage-list > div:nth-child(1) {
  width: 100px;
  text-align: right;
}
.main-updatemEessage-list > div:nth-child(2) {
  width: 300px;
  margin-left: 15px;
}
.main-updatemEessage-list {
  min-height: 50px;
  display: flex;
  margin-bottom: 15px;
  align-items: center;
}

.button-save {
  margin-left: 113px;
  width: 74px;
  height: 32px;
  border-radius: 4px;
  background-color: rgba(250, 140, 22, 1);
  text-align: center;
  line-height: 32px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 1);
}
.button-cancel {
  cursor: pointer;
  margin-left: 8px;
  width: 74px;
  height: 32px;
  border: 1px solid #ffd9d9d9;
  text-align: center;
  line-height: 32px;
  font-size: 14px;
  border-radius: 4px;
  background-color: #fff;
  color: rgba(0, 0, 0, 0.65);
}
.main-updatemEessage-button {
  height: 50px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  margin-bottom: 44px;
}

.main-updatemEessageShow-bottom {
  min-height: 55px;
  margin-top: 36px;
}

.main-updatemEessageShow-top > div:nth-child(1) {
  font-size: 16px;
  font-weight: 600;
  color: #5c5c5c;
  margin-left: 30px;
  font-size: 20px;
  color: rgba(0, 0, 0, 1);
}

.main-updatemEessageShow-top {
  display: flex;
  justify-content: space-between;
  height: 55px;
  align-items: center;
}

.main-updatemEessageShow {
  width: 455px;
  min-height: 200px;
  background-color: #fff;
  border-radius: 5px;
}
.updatemEessageShow {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-fade-enter-active {
  transition: all 0.7s ease;
}

.slide-fade-enter,
.slide-fade-leave-active {
  transform: translateY(-30px);
  opacity: 0;
}
</style>